package com.yimi.yinhepda.views.login.presenter;

import android.widget.Spinner;
import com.yimi.yinhepda.base.BasePresenter;
import com.pda.ym.utils.SpinnerData;
import com.yimi.yinhepda.views.login.contract.QueryCompanyContract;
import com.yimi.yinhepda.views.login.logic.QueryCompanyLogic;
import java.util.List;

/**
 * @author 000432
 * @date 2017/11/2 0002
 */

public class QueryCompanyPresenter extends BasePresenter<QueryCompanyContract.QueryCompanyView, QueryCompanyContract.QueryCompanyBiz>
    implements QueryCompanyContract.QueryCompanyPresenter {

  @Override public QueryCompanyContract.QueryCompanyBiz createLogic() {
    return new QueryCompanyLogic(this);
  }

  @Override public void getCompanyInfo() {
    getLogic().getCompanyInfo();
  }

  public void saveData(List<SpinnerData> serverNameSpinnerList, Spinner serverSpinner, List<SpinnerData> companyNameSpinnerList,
      Spinner companyNameSpinner) {

    getLogic().saveData(serverNameSpinnerList,serverSpinner,companyNameSpinnerList,companyNameSpinner);
  }
}
